package com.cdplife.ci.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 附件路径表
 * </p>
 *
 * @author jers
 * @since 2018-11-07
 */
@TableName("accessory")
public class Accessory extends Model<Accessory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("created_by")
    private String createdBy;
    @TableField("created_date")
    private Date createdDate;
    @TableField("last_modified_by")
    private String lastModifiedBy;
    @TableField("last_modified_date")
    private Date lastModifiedDate;
    /**
     * 附件类型：链接config_id 以表不同值不同，person表：0-100 
claim表：101-200
     */
    @TableField("accessory_type")
    private Integer accessoryType;
    /**
     * 附件所属表名：insurance/policy/person/claim
     */
    @TableField("accessory_table")
    private String accessoryTable;
    /**
     * 表的主键ID
     */
    @TableField("ref_id")
    private Integer refId;
    /**
     * 缩放图相对路径
     */
    @TableField("thumb_path")
    private String thumbPath;
    /**
     * 附件相对路径
     */
    @TableField("file_path")
    private String filePath;
    /**
     * 附件大小
     */
    @TableField("file_size")
    private String fileSize;
    /**
     * 文件名称
     */
    @TableField("file_name")
    private String fileName;
    /**
     * 文件是否删除 0：未删除（正常） 1：已删除
     */
    @TableField("is_del")
    private Integer isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Integer getAccessoryType() {
        return accessoryType;
    }

    public void setAccessoryType(Integer accessoryType) {
        this.accessoryType = accessoryType;
    }

    public String getAccessoryTable() {
        return accessoryTable;
    }

    public void setAccessoryTable(String accessoryTable) {
        this.accessoryTable = accessoryTable;
    }

    public Integer getRefId() {
        return refId;
    }

    public void setRefId(Integer refId) {
        this.refId = refId;
    }

    public String getThumbPath() {
        return thumbPath;
    }

    public void setThumbPath(String thumbPath) {
        this.thumbPath = thumbPath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Accessory{" +
        ", id=" + id +
        ", createdBy=" + createdBy +
        ", createdDate=" + createdDate +
        ", lastModifiedBy=" + lastModifiedBy +
        ", lastModifiedDate=" + lastModifiedDate +
        ", accessoryType=" + accessoryType +
        ", accessoryTable=" + accessoryTable +
        ", refId=" + refId +
        ", thumbPath=" + thumbPath +
        ", filePath=" + filePath +
        ", fileSize=" + fileSize +
        ", fileName=" + fileName +
        ", isDel=" + isDel +
        "}";
    }
}
